package com.rr.springcloud;

import com.rr.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author RR
 * @date 2021/3/15 12:17
 */
@SpringBootApplication
@EnableEurekaClient
//注意！！！！这里的name要写成大写！！，就写从eureka那拷贝来的就好，不要自己从application.name那里复制
//关掉随机轮询算法，要的话可以去这个MySelfRule这个类看看
//@RibbonClient(name = "PAYMENT-SERVICE", configuration = MySelfRule.class)
public class CustomerOrder {
    public static void main(String[] args) {
        SpringApplication.run(CustomerOrder.class, args);
    }
}
